﻿<navigation:Page x:Class="ADministration.Views.CategoriesViews.AddCategory" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="AddCategory Page">
    <Grid x:Name="LayoutRoot">
        <TextBlock Text="Add new Category" Style="{StaticResource HeaderTextStyle}" HorizontalAlignment="Left"
                   VerticalAlignment="Top" Margin="12,12,0,0" />
        <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Text="Category Name" Margin="12,44,0,0" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="104,40,0,0" 
                 Name="textBoxCategoryName" VerticalAlignment="Top" Width="156" 
                 Text="{Binding Path=Category.Name, Mode=TwoWay}" />
        <Button Content="Add" Height="26" HorizontalAlignment="Left" Margin="104,69,0,0" 
                Name="buttonAdd" VerticalAlignment="Top" Width="75"
                Command="{Binding AddCategoryCommand}"/>
        <Button Content="Cancel" Height="26" HorizontalAlignment="Left" Margin="185,69,0,0" 
                Name="buttonCancel" VerticalAlignment="Top" Width="75"
                Command="{Binding CancelCategoryCommand}"/>
    </Grid>
</navigation:Page>
